CLS
SET SOURCE_CODE_PATH=E:\Project\CMSCollection\CMS 6\CMS 6\src\CMS6_Branch_DEV
SET NETWORKPATH=%~dp0

echo "Make Licenses Package"
SET LICENSES_FOLDER=Licenses
RD %NETWORKPATH%%LICENSES_FOLDER% /S /Q
MD %NETWORKPATH%%LICENSES_FOLDER%  
XCOPY "%SOURCE_CODE_PATH%\%LICENSES_FOLDER%\CMS6" %NETWORKPATH%%LICENSES_FOLDER%\CMS6\ /E
XCOPY "%SOURCE_CODE_PATH%\%LICENSES_FOLDER%\CMS6Enterprise" %NETWORKPATH%%LICENSES_FOLDER%\CMS6Enterprise\ /E
XCOPY "%SOURCE_CODE_PATH%\%LICENSES_FOLDER%\visionLive" %NETWORKPATH%%LICENSES_FOLDER%\visionLive\ /E

echo "Make Project Package"
SET PROJECT_FOLDER=Project
RD %NETWORKPATH%%PROJECT_FOLDER% /S /Q
MD %NETWORKPATH%%PROJECT_FOLDER%  
XCOPY "%SOURCE_CODE_PATH%\%PROJECT_FOLDER%\CMS6" %NETWORKPATH%%PROJECT_FOLDER%\CMS6\ /E
XCOPY "%SOURCE_CODE_PATH%\%PROJECT_FOLDER%\Components" %NETWORKPATH%%PROJECT_FOLDER%\Components\ /E
XCOPY "%SOURCE_CODE_PATH%\%PROJECT_FOLDER%\Contents" %NETWORKPATH%%PROJECT_FOLDER%\Contents\ /E
MD %NETWORKPATH%%PROJECT_FOLDER%\FileCenter
DEL /S /Q "%NETWORKPATH%\%PROJECT_FOLDER%\Contents\Main\sitemap_*.xml"
RD /S /Q "%NETWORKPATH%\%PROJECT_FOLDER%\Contents\Main\Configuration\Log\"

echo "COPY DLLs"
XCOPY "%SOURCE_CODE_PATH%\Vision.Cms.Mvc\bin\*.dll" %NETWORKPATH%CMS6\bin\ /E /Y
XCOPY "%SOURCE_CODE_PATH%\Vision.Cms.ActiveDirectory\bin\*.dll" %NETWORKPATH%ActiveDirectory\bin\ /E /Y
XCOPY "%SOURCE_CODE_PATH%\Vision.VCmc.Mvc\bin\*.dll" %NETWORKPATH%VMC\bin\ /E /Y

PAUSE